package com.sykj.qianxuezhan.server.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sykj.qianxuezhan.bean.NurseType;
import com.sykj.qianxuezhan.mapper.NurseTypeMapper;
import com.sykj.qianxuezhan.server.NursePeojectService;
import com.sykj.qianxuezhan.server.NurseTypeService;
import com.sykj.util.reponse.CommonEnum;
import com.sykj.util.reponse.ResultBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author QianXuezhan
 * @Date 2020/7/19 15:33
 * @Description: TODO
 */
@Service
public class NurseTypeServiceImpl extends ServiceImpl<NurseTypeMapper, NurseType> implements NurseTypeService {
    @Autowired
    private NurseTypeMapper nurseTypeMapper;
    //查询所有护理类型信息
    @Override
    public List<NurseType> queryNurseType(String typeName) {
        return nurseTypeMapper.queryNurseType(typeName);
    }

    /**
    * @Description:添加护理类型信息
    **/
    @Override
    public ResultBody addNurseType(NurseType nurseType) {
        nurseTypeMapper.addNurseType(nurseType);
        return  new ResultBody(CommonEnum.SUCCESS);
    }
}
